DelSubform

Use this procedure/function to remove a subform from a form.

Syntax

DelSubform (subform, Form, Group)

Parameter

Description

Defaults

subform

The name of the subform to be deleted.

.

.

No Default

Form

Name of a form within the form set.

the current form

Group

Name of a group to contain the specified form

The current group.

The system optionally returns one (1) on success or zero (0) on failure.

This procedure removes the sections within the specified subform from the form including the subform's begin and end sections.

If the deleted sections leave the page empty, the system also removes the page from the form.

Note

Example

Here are some examples:

Procedure

Result

Explanation

DelSubform( "SF")

)

1 or 0

Delete the sections from the specified subform("SF") from the current form

.

DelSection( "SF\3", ,"GRP" )

1 or 0

Delete sections in the third occurrence of the subform "SF" in the group "GRP:

.

 

See also